package com.ebai.product.management.model.vojo;

import org.apache.commons.lang.StringUtils;

import com.ebai.product.management.base.cache.service.PublicCacheImpl;

public class RoleUserVo {

	private String pid;
	
	private String loginName;
	
	private String userName;
	
	private String mobileNo;

    private String rolePid;
    
    private String isEnable;
    
    private String isEnableText;
    
    private Boolean LAY_CHECKED;
    
    public String getIsEnableText() {
        return PublicCacheImpl.showDictText("TYSF", this.isEnable);
    }

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getMobileNo() {
		return mobileNo;
	}

	public void setMobileNo(String mobileNo) {
		this.mobileNo = mobileNo;
	}
	
	public String getIsEnable() {
		return isEnable;
	}

	public void setIsEnable(String isEnable) {
		this.isEnable = isEnable;
	}

	public String getRolePid() {
		return rolePid;
	}

	public void setRolePid(String rolePid) {
		this.rolePid = rolePid;
	}

	public Boolean getLAY_CHECKED() {
		return this.LAY_CHECKED;
	}

	public void setLAY_CHECKED(Boolean lAY_CHECKED) {
		LAY_CHECKED = lAY_CHECKED;
	}

	public RoleUserVo(String pid, String loginName, String userName, String mobileNo, String isEnable, String rolePid) {
        this.pid = pid;
        this.loginName = loginName;
        this.userName = userName;
        this.mobileNo = mobileNo;
        this.isEnable = isEnable;
        this.rolePid = rolePid;
        if (StringUtils.isNotBlank(this.rolePid)) {
        	this.LAY_CHECKED = true;
		}
        else {
        	this.LAY_CHECKED = false;
        }
        this.isEnableText = PublicCacheImpl.showDictText("TYSF", this.isEnable);
//        if (StringUtils.equals(pid, "e4e4e482677d3c1401677d3d70e20000")) {
//        	this.LAY_CHECKED = true;
//		}
    }
}
